<template>
    <div>
        文章页面-{{ $route.params.id }}
    </div>
</template>

<script setup>
import { onMounted } from 'vue';
import { useRoute } from 'vue-router'
const route = useRoute()


onMounted(() => {
    // 获取到路由参数
    console.log(route.params.id)
})
</script>